package com.changcheng.project.ble_upgrade_recordinfo.domain;

import com.changcheng.framework.aspectj.lang.annotation.Excel;
import com.changcheng.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 升级记录表对象 ble_upgrade_recordinfo
 * 
 * @author dazhi
 * @date 2021-03-10
 */
public class BleUpgradeRecordinfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** Obu Sn号 */
    @Excel(name = "Obu Sn号")
    private String obuSn;

    /** obu旧版本号 */
    @Excel(name = "obu旧版本号")
    private String obuVersion;

    /** obu升级成功的新版本 */
    @Excel(name = "obu升级成功的新版本")
    private String obuNewVersion;

    /** 蓝牙名称 */
    @Excel(name = "蓝牙名称")
    private String bluetoothName;

    /** 蓝牙mac */
    @Excel(name = "蓝牙mac")
    private String bluetoothMac;

    /** 蓝牙旧版本号 */
    @Excel(name = "蓝牙旧版本号")
    private String bluetoothVersion;

    /** 蓝牙升级成功的新版本 */
    @Excel(name = "蓝牙升级成功的新版本")
    private String bluetoothNewVersion;

    /** 升级时间 */
    @Excel(name = "升级时间")
    private String upgradeTime;

    /** 操作员账号 */
    @Excel(name = "操作员账号")
    private String operAccount;

    /** 升级标志（0-成功，1-失败） */
    @Excel(name = "升级标志", readConverterExp = "0=-成功，1-失败")
    private String isFlag;

    /** 升级失败原因 */
    @Excel(name = "升级失败原因")
    private String reason;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setObuSn(String obuSn)
    {
        this.obuSn = obuSn;
    }

    public String getObuSn()
    {
        return obuSn;
    }
    public void setObuVersion(String obuVersion)
    {
        this.obuVersion = obuVersion;
    }

    public String getObuVersion()
    {
        return obuVersion;
    }
    public void setObuNewVersion(String obuNewVersion)
    {
        this.obuNewVersion = obuNewVersion;
    }

    public String getObuNewVersion()
    {
        return obuNewVersion;
    }
    public void setBluetoothName(String bluetoothName)
    {
        this.bluetoothName = bluetoothName;
    }

    public String getBluetoothName()
    {
        return bluetoothName;
    }
    public void setBluetoothMac(String bluetoothMac)
    {
        this.bluetoothMac = bluetoothMac;
    }

    public String getBluetoothMac()
    {
        return bluetoothMac;
    }
    public void setBluetoothVersion(String bluetoothVersion)
    {
        this.bluetoothVersion = bluetoothVersion;
    }

    public String getBluetoothVersion()
    {
        return bluetoothVersion;
    }
    public void setBluetoothNewVersion(String bluetoothNewVersion)
    {
        this.bluetoothNewVersion = bluetoothNewVersion;
    }

    public String getBluetoothNewVersion()
    {
        return bluetoothNewVersion;
    }
    public void setUpgradeTime(String upgradeTime)
    {
        this.upgradeTime = upgradeTime;
    }

    public String getUpgradeTime()
    {
        return upgradeTime;
    }
    public void setOperAccount(String operAccount)
    {
        this.operAccount = operAccount;
    }

    public String getOperAccount()
    {
        return operAccount;
    }
    public void setIsFlag(String isFlag)
    {
        this.isFlag = isFlag;
    }

    public String getIsFlag()
    {
        return isFlag;
    }
    public void setReason(String reason)
    {
        this.reason = reason;
    }

    public String getReason()
    {
        return reason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("obuSn", getObuSn())
            .append("obuVersion", getObuVersion())
            .append("obuNewVersion", getObuNewVersion())
            .append("bluetoothName", getBluetoothName())
            .append("bluetoothMac", getBluetoothMac())
            .append("bluetoothVersion", getBluetoothVersion())
            .append("bluetoothNewVersion", getBluetoothNewVersion())
            .append("upgradeTime", getUpgradeTime())
            .append("operAccount", getOperAccount())
            .append("isFlag", getIsFlag())
            .append("reason", getReason())
            .toString();
    }
}
